<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
  <head>
    <base href="<%=basePath%>">
    
    <title>查询小区支付记录</title>
    
	<meta http-equiv="pragma" content="no-cache">
	<meta http-equiv="cache-control" content="no-cache">
	<meta http-equiv="expires" content="0">    
	<meta http-equiv="keywords" content="keyword1,keyword2,keyword3">
	<meta http-equiv="description" content="This is my page">
	<!--
	<link rel="stylesheet" type="text/css" href="styles.css">
	-->
  </head>
  <script type="text/javascript">
  	function selectAddress(){
  		var address=document.getElementById("select").value;
  		window.location.href="<%=path%>/paycontroller/show?address="+address;
  	}
  </script>
  <body>
 	<table border="1px solid red;" align="center" width="50%">
 		<tr height="100px;">
 			<td align="center"><font style="color: red;">查询小区支付记录</font></td>
 		</tr>
 		<tr height="100px;">
 			<td align="center">
 				<select id="select">
			    	<c:forEach var="v" items="${list}">
			    		<option value="${v.address}">${v.address}</option>
			    	</c:forEach>
			    </select>
 			</td>
 		</tr>
 		<tr height="100px;">
 			<td align="center"><input type="button" onclick="selectAddress()" value="查询" style="width: 200px; height: 30px;"></td>
 		</tr>
 	</table>
  </body>
</html>
